package lhdx5;

import java.util.Scanner;

public class Shangchangces {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
       Shangchangyin D=new Shangchangyin();
        int z=0;
        while (true){
            System.out.print("1.添加新会员, 2.给用户涨分, 3.兑换礼品,4.查询，5.退出,6.扩容。");
            z=in.nextInt();
            if (z==1){
                System.out.print("输入会员号：");
                String hyh=in.next();
                System.out.print("输入会员姓名:");
                String xinm=in.next();
                System.out.print("输入会员手机号:");
                String shoj=in.next();
                System.out.print("输入会员积分:");
                int a=in.nextInt();
                D.adds(hyh,xinm,shoj,a);
            }else if(z==2){
                System.out.print("输入会员号：");
                String hyh=in.next();
                System.out.print("输入会员增涨积分:");
                int c=in.nextInt();
                D.inc(hyh,c);
            }else if (z==3){
                System.out.println("1：100分兑换餐巾纸一包:");
                System.out.println("2：400分兑换剃须刀一把:");
                System.out.println("3：1000分兑换炒锅一个:");
                System.out.print("输入会员号：");
                String hyh=in.next();
                System.out.print("选择要兑换礼品序号：");
                int A=in.nextInt();
                String S=D.duihuan(hyh,A);
                System.out.println(S);
            }else if(z==4){
                D.changxi();
            }else if (z==5){
                break;
            }else if (z==6){
               // D.kuoR();
            }
        }

    }
}
